package gui.panels.tab;

import javax.swing.table.DefaultTableModel;

public class TableModelCovar extends DefaultTableModel {

	private static final long serialVersionUID = 1L;
	
	public TableModelCovar(int n) {
		super(new Object [][] {}, getNames(n));
	}

	static private Object[] getNames(int n) {
		Object[] names = new Object[n+1];
		names[0]="Covariance";
		for (int i=0;i<n;i++){
			names[i+1] = "" + (i+1);
		}
		return names;
	}
	
	@Override
	public boolean isCellEditable(int row, int column) {
		return false;
	}
	
}
